Working with PrizmDoc > Administering PrizmDoc > Managing PrizmDoc Server > Starting & Stopping PrizmDoc Server > PrizmDoc Application Services > Linux |
The included script ./pas/pm2/pas.sh can be used to start and stop the PrizmDoc Application Services (PAS). The following examples assume the default install location. If you did not install it to the default location, replace /usr/share/prizm with the location to which you installed it.
Example |
Copy Code
|
---|---|
/usr/share/prizm/pas/pm2/pas.sh start |
Example |
Copy Code
|
---|---|
/usr/share/prizm/pas/pm2/pas.sh stop |
You can also configure PAS to be started/stopped together with the system in two steps:
Example Copy Code ln -s /usr/share/prizm/pas/pm2/pas.sh /etc/init.d/pas
Example |
Copy Code
|
---|---|
chkconfig --add pas |
Example |
Copy Code
|
---|---|
update-rc.d pas defaults |
Once done, the system should stop PAS when going to reboot or shutdown, and will be started again when booting the server.
After the first step, you can use the service command to manage PAS instead of invoking the script directly. That way even if you don’t need PAS to be automatically started/stopped, you may want to complete the first step to be able to more easily manage it. |
The syntax is as follows:
Example |
Copy Code
|
---|---|
service pas start|stop|restart|status |
If you want to prevent PAS from starting/stopping together with the system, you need to revert Step 2 from the section above. It is done as follows:
Example |
Copy Code
|
---|---|
chkconfig --del pas |
Example |
Copy Code
|
---|---|
update-rc.d -f pas remove |